<tagLib name="html" />

<include file="Public:header" />
<load href="__PUBLIC__/Js/datePicker/jquery.datePicker.css" />
<load href="__PUBLIC__/Js/datePicker/date.js" />
<load href="__PUBLIC__/Js/datePicker/jquery.datePicker.js" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.manage_users}</h3>
        <ul class="tab1">
            <li><a href="__URL__/userList"><span>{$Think.lang.manage_users}</span></a></li>
            <li><a href="__URL__/addUser"><span>{$Think.lang.add_user}</span></a></li>
            <li><a href="__URL__/approveUser"><span>{$Think.lang.approve_user}</span></a></li>
            <li class="current"><a href="__URL__/searchUser"><span>{$Think.lang.search_user}</span></a></li>
        </ul>
    </div>
    <form name="cpform" method="get" action="__URL__/userList">
    <input type="hidden" name="op" value="search" />
    <table class="tb tb2">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.username}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="username" value="" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.email}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="email" value="" type="text" class="txt" /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$think.lang.user_group}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="user_group">
                    <option value="0">{$Think.lang.select_group}</option>
                    <volist name="userGroups" id="vo">
                    <option value="{$vo.group_id}"> > {$vo.name}</option>
                    </volist>
                </select>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tbody id="advance" style="display:none">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.point_count}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="point_count_select" style="width:128px">
                    <option value="lt">{$Think.lang.lt}</option>
                    <option value="eq">{$Think.lang.eq}</option>
                    <option value="gt">{$Think.lang.gt}</option>
                </select>
                <input name="point_count" value="" type="text" class="txt" style="width:110px"/>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.question_count}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="question_count_select" style="width:128px">
                    <option value="lt">{$Think.lang.lt}</option>
                    <option value="eq">{$Think.lang.eq}</option>
                    <option value="gt">{$Think.lang.gt}</option>
                </select>
                <input name="question_count" value="" type="text" class="txt" style="width:110px"/>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.answer_count}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="answer_count_select" style="width:128px;">
                    <option value="lt">{$Think.lang.lt}</option>
                    <option value="eq">{$Think.lang.eq}</option>
                    <option value="gt">{$Think.lang.gt}</option>
                </select>
                <input name="answer_count" value="" type="text" class="txt" style="width:110px;"/>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.register_date}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="register_date_select" style="width:128px;float:left;">
                    <option value="lt">{$Think.lang.before}</option>
                    <option value="gt">{$Think.lang.after}</option>
                </select>
                <input id="date-pick1" name="register_date" value="" type="text" class="txt" style="width:110px;margin-right:0px;"/>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.last_activity}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="last_activity_select" style="width:128px;float:left;">
                    <option value="lt">{$Think.lang.before}</option>
                    <option value="gt">{$Think.lang.after}</option>
                </select>
                <input id="date-pick2" name="last_activity" value="" type="text" class="txt" style="width:110px;margin-right:0px;"/>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        </tbody>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="{$Think.lang.submit}" /> <input id="btn_more" type="checkbox" class="checkbox" onclick="advanceOptions()"><label for="btn_more">{$Think.lang.more_options}</label></div></td></tr>
    </table>
    </form>
</div>

<script type="text/javascript">
$(function(){
    Date.format = 'yyyy-mm-dd';
    var params = {
        clickInput:true,
        startDate:'1996-01-01'
    };
	$('#date-pick1,#date-pick2').datePicker(params);
});
function advanceOptions(obj){
    var display = $('#advance').css('display');
    if(display == 'none'){
        $('#advance').show();
    }else{
        $('#advance').hide();
    }
}
</script>

<include file="Public:footer" />
